<extend name="../layout" />

<block name="main_content">
    <include file="Common:SettingsHeader:order" />
    <div class="row-fluid paper-edit-box">
        <div class="span8">
            <div class="widget-box">
                <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
                    <h5>{:L('shipment')} {:L("view_detail")}</h5>
                </div>
                <div class="widget-content nopadding">
                    <table class="table table-bordered table-striped with-check">
                        <tbody>
                            <foreach name="vo" item="v" key="k">
                                <if condition="$k eq 'stockout_id'">
                                <tr>
                                    <th>{:L($k)}</th>
                                    <td><a href="{:U('/JXC/Stockout/viewDetail/id/'.$v)}">{$v}</a></td>
                                </tr>
                                <else />
                                <tr>
                                    <th>{:L($k)}</th>
                                    <td>{$v}</td>
                                </tr>
                                </if>
                            </foreach>
                            <tr>
                                <td colspan='2'>
                                    <a href='javascript:history.go(-1);' class="btn">{:L("go_back")}</a>
                                    <a href="javascript:window.print();" class="btn btn-primary"><i class="icon icon-print"></i> {:L("print_shipment")}</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
               </div>
            </div>
        </div>
    </div>
    
    
</block>

<block name="footer_js">
    <div class="printAble express">
        <div class="{$vo.shipmentTypeAlias}">
            <div class="express-item from_name">{$vo.from_name}</div>
            <div class="express-item from_company">{$vo.from_company}</div>
            <div class="express-item from_address">{$vo.from_address}</div>
            <div class="express-item from_phone">{$vo.from_phone}</div>
            <div class="express-item to_name">{$vo.to_name}</div>
            <div class="express-item to_company">{$vo.to_company}</div>
            <div class="express-item to_address">{$vo.to_address}</div>
            <div class="express-item to_phone">{$vo.to_phone}</div>
        </div>
    </div>
</block>
